package cn.chinaunicom.admin.entity;

import java.util.Date;

import javax.validation.constraints.NotBlank;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.easy.secret.annotation.SecureData;
import com.easy.secret.annotation.SecureField;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 字段配置
 * @Author: jeecg-boot
 * @Date:   2023-10-24
 * @Version: V1.0
 */
@Data
@TableName("hl_fields")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@SecureData
public class Fields {
    
	/**fieldId*/
	@TableId(value = "field_id",type = IdType.AUTO)
	private Integer fieldId;
	/**字段名称*/
	@NotBlank( message = "字段名称不能是空!")
	@SecureField
	private String filedName;
	/**字典编码*/
	@SecureField
	private String filedCode;
	/**字段类型*/
	private String fieldType;
	/**默认值（多项时逗号分隔）*/
	private String defaultVal;
	/**必填标识*/
	private Integer requried;
	/**开启标识*/
	private Integer disabled;
	/**租户id*/
	private Integer tenantId;
	/**创建人*/
	private String cuserId;

	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date cdate;
	/**状态*/
	private String sts;
	/**修改人*/
	private String uuserId;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date udate;
	/**部门id*/
	private String orgId;
}
